﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.Security;


namespace Anuntiomatic.Server
{
    public class BaseUserControl: System.Web.UI.UserControl
    {
        #region Properties
        public int? UserID
        {
            get
            {
                if (string.IsNullOrEmpty(Page.User.Identity.Name))
                {
                    return null;
                }
                else
                {
                    return int.Parse(Page.User.Identity.Name);
                }
            }
        }
        #endregion
    }
}